package com.gzx.spring.db.pojo;

import com.gzx.risk.core.apis.context.AgeCalculator;

import lombok.Data;

@Data
public class OrderReviewInfo {
	private Integer leaseTerm;// 租机月数
	private String ordercode;// 订单编号

	private String status;
	private String phone;
	private String name;
	private String idCard;

	private String phoneType;// 手机型号
	private String yushouCount;// 首期预收期数
	private String firstPrice;// 首期预收金额
	private String monthPrice;// 每月应还租金
	private String recvName;// 收货人姓名
	private String recvPhone;// 收货人手机号
	private String recvAddress;// 收货人地址
	
	private String createdTime;

	public int getAge() {
		return AgeCalculator.calculateAge(idCard.substring(6, 14));
	}

	public String getReject() {
		return "auditOrder('" + this.ordercode + "', 'reject')";
	}

	public String getPermit() {
		return "auditOrder('" + this.ordercode + "', 'permit')";
	}
}
